import { FastifyPluginAsync } from 'fastify';

import UserService from '../../services/user.service';

const users: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
  const userService = new UserService(fastify);

  fastify.get('/', async function (request, reply) {
    return userService.queryDetails('1');
  });
};

export default users;
